﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;

namespace DigitalPublisher
{
    class ViewFiles
    {

        public List<string> listItem = new List<string>();
        public async void ht()
        {
            IReadOnlyList<StorageFolder> digipups;
            StorageFolder digipub = await KnownFolders.DocumentsLibrary.GetFolderAsync("digipup");

            digipups = await digipub.GetFoldersAsync();

            foreach (StorageFolder fol in digipups)
            {
                listItem.Add(fol.Name);

            }

        }

        public List<String> getItem()
        {
            return listItem;
        }
    }
}
